package com.pandy.juc;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @description:
 * @author: panhong
 * @date: 2025/3/18
 */
public class Code03_LockDemo {

    public static void main(String[] args) {
        ReentrantLock lock = new ReentrantLock();
        lock.lock();

        try {
            // 业务代码
        } finally {
            lock.unlock();
        }
    }
}
